<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml"   
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:cc="http://java.sun.com/jsf/composite"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich">
      
    <cc:interface>
        <cc:attribute name="bean" />
    </cc:interface>
 
    <cc:implementation>
    <rich:popupPanel id="popup" modal="true" resizeable="true" onmaskclick="#{rich:component('popup')}.hide()" show="#{bean}.popup}">
        <f:facet name="header">
            <h:outputText value="Aviso" />
        </f:facet>
        <f:facet name="controls">
            <h:outputLink value="#" onclick="#{rich:component('popup')}.hide(); return false;">
                    Fechar
                </h:outputLink>
        </f:facet>
        <h:outputText value="#{userb.status}" id="out" />
    </rich:popupPanel>

</cc:implementation>
	
</html>
